-
Home
-
Advanced Dynamic Pricing for WooCommerce
-
4.9.5
-
Code
-
Classes
- SingleItemRuleProcessor
Total Complexity |
151 |
Dependencies |
23 |
Dependents |
1 |
Total lines |
957 |
Lines of code |
556 |
Logical lines of code |
377 |
Comment lines |
180 |
Methods |
24 |
Properties |
16 |
Methods 24
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
applyRangeDiscounts() |
D |
28 |
37 |
128 |
getItemsToDiscount() |
D |
29 |
29 |
121 |
applyProductAdjustment() |
B |
38 |
21 |
67 |
isProductMatched() |
A |
47 |
11 |
36 |
isCategoryMatched() |
A |
53 |
9 |
23 |
process() |
A |
44 |
7 |
51 |
sortItems() |
A |
54 |
8 |
22 |
__construct() |
S |
55 |
3 |
18 |
isRuleMatchedCart() |
S |
64 |
3 |
11 |
addFreeProducts() |
S |
63 |
3 |
10 |
addAutoAddProducts() |
S |
63 |
3 |
10 |
applyToCart() |
S |
60 |
2 |
14 |
applyChangesToCart() |
S |
72 |
2 |
6 |
addGifts() |
S |
72 |
2 |
6 |
addAutoAdds() |
S |
72 |
2 |
6 |
checkConditions() |
S |
80 |
1 |
3 |
matchConditions() |
S |
80 |
1 |
3 |
applyCartAdjustments() |
S |
80 |
1 |
3 |
checkLimits() |
S |
80 |
1 |
3 |
withContext() |
S |
81 |
1 |
3 |
getLastExecTime() |
S |
81 |
1 |
3 |
getRule() |
S |
82 |
1 |
3 |
getStatus() |
S |
82 |
1 |
3 |
getProcessorRule() |
S |
82 |
1 |
3 |